export default {
  namespaced: true,
  state: () => ({
    title: 'cart moudle'
  }),
  mutations: {
    SET_TITLE: (state, value) => state.title = value,
  },
  getters: {
    g1(state, getters, rootState) {
      return 'cart g1' + state.title + getters.g2 + rootState.title;
    },
    g2(state, getters) {
      return 'cart g2'
    }
  },
  actions: {
    say(store, value) {
      console.log(value + store.state.title + store.rootState.title);
    }
  },

}